package com.yinhai.activity;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.TextView;

/**
 * WebViewCZActivity 快捷充值
 * 
 * @author lz
 */
public class WebViewCZActivity extends Activity {

	private WebView webview;

	private TextView title;
 
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.more_webview);
		Bundle extras = getIntent().getExtras();
		String titleStr = extras.getString("title");
		String url = extras.getString("url");


		title = (TextView) findViewById(R.id.head_title);
		title.setText(titleStr);

		webview = (WebView) findViewById(R.id.url_webview);
		webview.getSettings().setJavaScriptEnabled(true);
		// 加载需要显示的网页
		webview.loadUrl(url);
	}

	public void doBack(View view) {
		onBackPressed();
	}

}
